/*
 * @Author: gyc
 * @Date: 2020-06-19 13:48:30
 * @LastEditTime: 2020-06-20 13:18:48
 * @Description: Nuxt测试版
 */ 
'use strict';

module.exports = () => {
  return async (ctx, next) => {
    console.log(ctx.packet);
    // const say = await ctx.service.user.say();
    ctx.socket.emit('res', 'packet!' + '数据已处理！');
    await next();
    console.log('packet response!');
  };
};